package com.example.springsecurity.mapper;

import com.example.springsecurity.entity.Menu;
import com.example.springsecurity.entity.Role;

import java.util.List;

/**
 * ClassName: UserInfoMapper
 * Author:   WGG
 * Date:    2022-12-2022/12/20-12:32
 * Version: 1.0
 * Description:
 */
public interface UserInfoMapper {
    /**
     * 根据用户id查询用户角色
     * @param userId
     * @return
     */
    List<Role> selectRoleUserId(Long userId);

    /**
     * 根据用户id查询菜单
     * @param userId
     * @return
     */
    List<Menu> selectMenuByUserId(Long userId);
}
